// SwordBibleDoc.h : interface of the CSwordBibleDoc class
//


#pragma once

const int nBibles = 35; 
const int nBottom = 20;
const int nBottomLeft = 18;
const int nDevotional = 7;
const int MAXBOOKMARKS = 75;



class CSwordBibleDoc : public CDocument
{
protected: // create from serialization only
	CSwordBibleDoc();
	DECLARE_DYNCREATE(CSwordBibleDoc)

// Attributes
public:

// Operations
public:

// Overrides
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	static CString bookCode[66][3];  // names of books of bible and abbreviations
	static int VerseCount[66][151];  // total number of verses in each chapter of the bible

	static sword::SWModule* pModulePlain[nBibles];  // holds all bibles
	static int numBiblesAvailable;

	static BOOL devotion_startup;
	static BOOL lemma_tags;
	static BOOL morph_tags;
	static BOOL fn_tags;
	static BOOL crossref_tags;
	static sword::SWModule * pXrefModuleActive;
	static BOOL heading_tags;
	static BOOL redchrist_tags;
	static BOOL bibleZoom;
	static BOOL dailybibleZoom;
	static BOOL bibleSplit;
	static BOOL rememberLastVerse;  // jump to the last active verse in previous session

	
	static int Book();							// the current book, not a 0 based based index
	static int Chapter();						// the active chapter
	static int Verse();							// the active verse
	static sword::VerseKey key;
	static CHARFORMAT curTextfont;			// the font of the bible text in rich edit control
	static CHARFORMAT curVersefont;		 // the font of the bible verse in the rich edit control
            


	static int curNotesChapter ;				// the active chapter in the notes section
	static CString curNotesBook;				// the active book in the notes section
	static BOOL notesSynch;						// synchronize notes with main bible position?
	static BOOL notesBold;
	static BOOL notesItalic;
	static BOOL notesUnderline;
	static BOOL notesParaRight;
	static BOOL notesParaCenter;
	static BOOL notesParaLeft;


	static BOOL bottomZoom;
	static BOOL bottomSynch;						// synchronize bottom with main bible position?
	static int bottomChapter();                     // bottom (commentary) chapter number
	static int bottomBook();                        // bottom (commentary) book, not a zero-based number
	static sword::VerseKey curBottomKey ;

	static BOOL dictZoom;

	static sword::SWKey devotionKey;

	static CString oneyearKey;


	static BOOL showTitle;
	static CString BookMarks[MAXBOOKMARKS];


	
// Implementation
public:
	virtual ~CSwordBibleDoc();




#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:

	
};


